<%-- 
    Document   : NewUser
    Created on : Apr 22, 2011, 7:13:11 PM
    Author     : lycdragon
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><bean:message key="welcome.title"/></title>
        <link rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/template_css.css" media="screen"
              type="text/css" />
        <html:base/>
    </head>
    <body>
        <div class="container">
            <div class="header">
                <a href="#"><img src="${pageContext.servletContext.contextPath}/img/grlg.png" alt="Insert_logo" name="Insert_logo" width="180" height="90" id="Insert_logo" style="background: #C6D580; display:block;"></a>
            </div><!-- end .header -->
            <div class="content">
                <html:form action="/newUser" method="post">
                    <table border="0">
                        <tbody>
                            <tr>
                                <td>
                                    User Type: <html:select property="Rol">
                                                    <html:option value="Clerk">Clerk</html:option>
                                                    <html:option value="Manager">Manager</html:option>
                                                    <html:option value="Administrator">Administrator</html:option>
                                               </html:select>
                                </td>
                            </tr>
                            <tr>
                                <td>User Name: <html:text property="userName" /></td>
                            </tr>
                            <tr>
                                <td>Password: <html:password property="password" /></td>
                            </tr>
                            <tr>
                                <td>First Name: <html:text property="firstname" /></td>
                            </tr>
                            <tr>
                                <td>Last Name: <html:text property="lastName" /></td>
                            </tr>
                            <tr>
                                <td>Phone Number: <html:text property="phone" /></td>
                            </tr>
                            <tr>
                                <td>Email: <html:text property="email" /></td>
                            </tr>
                            <tr>
                                <td>Address: <html:text property="address" /></td>
                            </tr>
                                
                            <tr>
                                <td>
                                    <input type="submit" name="Submit" id="Submit">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </html:form>
                        <html:form>
                            <table width="625" border="1">
                                <tr>
                                    <th width="40">ID</th>
                                    <th width="150">Username</th>
                                    <th width="250">Email</th>
                                    <th width="140">Phone</th>
                                </tr>
                            </table>
                        </html:form>
                    <html:form action="editSeletedUserInfo" method="post">
                    <div  style="width:645px;height:230px;overflow:auto;">
                            <table width="625" border="1">
                                <c:forEach var="s" items="${userlist}">
                                    <tr>
                                        <td width="40"><html:submit property="edit" value="${s.id}"/></td>
                                        <td width="150">${s.userName}</td>
                                        <td width="250">${s.email}</td>
                                        <td width="140">${s.phone}</td>
                                    </tr>
                                </c:forEach>
                            </table>
                    </div>
                    </html:form>
                

                <!-- YOUR CODE HERE -->



            </div><!-- end .content -->
        </div><!-- end .container -->
        <div class="footer">
            <p>Copyright 2011&nbsp;TigerSoft</p>
        </div><!-- end .footer -->
    </body>
</html>